package com.jjy.service.impl;

import com.jjy.dao.impl.GoodsDaoImpl;
import com.jjy.pojo.Goods;
import com.jjy.service.GoodsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("goodsService")
public class GoodsServiceImpl implements GoodsService{

  private GoodsDaoImpl goodsDaoImpl;

  @Override
  public Goods selectGoodsById(int goodsId) {
    return goodsDaoImpl.selectGoodsById(goodsId);
  }

  @Override
  public int createGoods(Goods goods) {
    return goodsDaoImpl.createGoods(goods);
  }

  @Override
  public List<Goods> selectGoodsByParams(Goods goods) {
    return goodsDaoImpl.selectGoodsByParams(goods);
  }
}
